package cate.common.table.pvp.pointrace.sheet;

import cate.common.table.ESheet;
import cate.common.table.pvp.pointrace.row.PointRaceSeasonRankRewardRow;

/** 演武场赛季奖励 */
public class PointRaceSeasonRankRewardSheet extends ESheet<PointRaceSeasonRankRewardRow> {

    @Override
    public String getSheetName() {
        return "积分赛赛季奖励";
    }

    public String getReward(int rankNo) {
        for (PointRaceSeasonRankRewardRow row : list) {
            if (rankNo >= row.begin && rankNo <= row.end) {
                return row.rewardStr;
            }
        }
        return null;
    }
}
